package com.whisperly.echotalk.bllmodel;

import androidx.annotation.Keep;
import androidx.annotation.NonNull;

import java.io.Serializable;
import java.util.Objects;

@Keep
public class ChatWithUser implements Serializable {
    public static final int SEND=1;
    public static final int RECEIVE=2;
    private int state;
    private String message;

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ChatWithUser chatBean = (ChatWithUser) o;
        return state == chatBean.state && Objects.equals(message, chatBean.message);
    }

    @Override
    public int hashCode() {
        return Objects.hash(state, message);
    }

    @NonNull
    @Override
    public String toString() {
        return "ChatWithUser{" +
                "state=" + state +
                ", message='" + message + '\'' +
                '}';
    }
}
